package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 值班信息对象 duty_information
 * 
 * @author 管鸿影
 * @date 2024-12-08
 */
public class DutyInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 值班编号 */
    private Long dutyId;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private Long employeeId;

    /** 值班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "值班日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 班次（0:白班，1:夜班） */
    @Excel(name = "班次", readConverterExp = "0=:白班，1:夜班")
    private Long shift;

    public void setDutyId(Long dutyId) 
    {
        this.dutyId = dutyId;
    }

    public Long getDutyId() 
    {
        return dutyId;
    }

    public void setEmployeeId(Long employeeId) 
    {
        this.employeeId = employeeId;
    }

    public Long getEmployeeId() 
    {
        return employeeId;
    }

    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    public void setShift(Long shift) 
    {
        this.shift = shift;
    }

    public Long getShift() 
    {
        return shift;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dutyId", getDutyId())
            .append("employeeId", getEmployeeId())
            .append("date", getDate())
            .append("shift", getShift())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
